package com.pgeg.registry;

import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;

import static com.pgeg.listener.StatusEffectListener.MANA_REDUCTION;
import static com.pgeg.util.Reference.MODID;

public class StatusEffectRegistry {

    public static void registerStatusEffect() {
        initStatusEffect("mana_reduction", MANA_REDUCTION);
    }

    private static void initStatusEffect(String path, StatusEffect effect) {
        Registry.register(Registry.STATUS_EFFECT, new Identifier(MODID, path), effect);
    }
}
